package cn.chat.udp.ui.util;

import java.awt.Dimension;
import java.awt.Toolkit;

public class ChatUtil {
	private static Dimension screenSize;
	private static int offset=0;
	static{
		 screenSize = Toolkit.getDefaultToolkit().getScreenSize();
	}
	public static void main(String[] args) {
		
		int width = (int) screenSize.getWidth();
		int height = (int) screenSize.getHeight();
		getScreenWidth();
		getScreenHeight();
	}

	public static int getScreenHeight() {
		return (int) screenSize.getHeight();
	}

	public static int getScreenWidth() {
		
		
		return (int) screenSize.getWidth();
	}
	public static int getOffset() {
		offset =offset+=20;
		return offset;
	}
}
